package com.bytz.modules.cms.order.model;

import com.bytz.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Getter
@Setter
@EqualsAndHashCode
public class OrderPayModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "付款类别（1-预付款；2-尾款）")
    private String payType;

    @ApiModelProperty(value = "支付总金额")
    private BigDecimal totalPayAmount;

    @ApiModelProperty(value = "收货地址")
    private String shipToAddress;

    @ApiModelProperty(value = "收货联系人")
    private String shipToContact;

    @ApiModelProperty(value = "收货联系人电话")
    private String shipToPhone;

    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "mall_order_pay_status")
    private String status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "支付明细")
    private List<OrderPayDetailModel> payDetails;
}
